package com.mk.exnotice.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.LinkedList;
import java.util.List;

/**
 *  @描述: 异常通知配置参数类
 *  @author: maming
 *  @date: 2021/6/2
 */
@Data
@ConfigurationProperties(prefix = ExceptionNoticeProperties.PREFIX)
public class ExceptionNoticeProperties {

    // 配置前缀
    public static final String PREFIX = "exception.notice";

    // 是否开启通知(默认不开启)
    private boolean enabled = false;

    private String projectName;

    // 追踪信息的包含的包名
    private String includedTracePackage;

    // 排除的需要统计的异常
    private List<Class<? extends Exception>> excludeExceptions = new LinkedList<>();

    private String[] to;

    private String[] cc;

    private String[] bcc;
}
